<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>函数 </title>
	<script>
		

		function get_ji_tu(head,footer) {
			for (var j =  1; j <= head; j++) {
				
				for (var t = 1;t <= (head-j); t++) {
					
					if((j*2+t*4)==footer && j+t==head){
						d("鸡:"+j+"-兔:"+t);
					}
				}
			}
		}

		get_ji_tu(90,200);
		get_ji_tu(150,460);
		get_ji_tu(40,120);


		function d(sdfsdfsdf) {
			document.write(sdfsdfsdf);
		}


		d(80989)

		// d("")



	</script>
</head>
<body>
	
</body>
</html>